package com.googlecode.controlecheque;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.widget.TabHost;

public class CadastroClienteTabActivity extends TabActivity {

	private TabHost tabHost;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Intent clienteIntent = new Intent(this, ClienteTab.class)
				.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		Intent chequesIntent = new Intent(this, ChequesTab.class).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);

		tabHost = getTabHost();
		tabHost.addTab(tabHost.newTabSpec("tab0").setIndicator("Cliente").setContent(clienteIntent));
		tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("Cheques").setContent(chequesIntent));
	}

	@Override
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);
	}

}
